﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace com.yd.sdk.api
{
    public interface IPay
    {
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="ConsumeSku"></param>
        /// <param name="NonConsumeSku"></param>
        /// <param name="SubsSku"></param>
        void Initialized(string ConsumeSku,string NonConsumeSku,string SubsSku);

        /// <summary>
        /// 购买产品
        /// </summary>
        /// <param name="productInfo"></param>
        void PurchaseProduct(string productInfo);
        
        
        /// <summary>
        /// DISCONNECTED 0
        /// CONNECTING   1
        /// CONNECTED    2
        /// CLOSED       3
        /// 获取服务连接状态
        /// </summary>
        /// <returns></returns>
        int GetConnectionState();

        /// <summary>
        /// 查询购买历史
        /// </summary>
        void QueryPurchaseHistory();

        /// <summary>
        /// 是否已经准备好
        /// </summary>
        /// <returns></returns>
        bool IsReady();

    }

}
